package com.wyl.auth.exception;

/**
 * @Description
 * @Author WuYiLong
 * @Date 2024/7/12 10:09
 */
public class BusinessException extends RuntimeException{

    /**
     * -1: 业务异常
     * 0: 登录异常
     */
    private int code = -1;

    private String msg;

    public BusinessException() {
        super();
    }

    public BusinessException(int code,String message) {
        this.code = code;
        this.msg = message;
    }

    public BusinessException(String message) {
        this.code = code;
        this.msg = message;
    }


    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
